package cn.tedu.micro.demo.order.feign;

import cn.tedu.micro.demo.common.pojo.protocol.JsonResult;
import cn.tedu.micro.demo.common.pojo.vo.GunInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "device-service",url="http://localhost:9000/")
public interface DeviceClient {

    @GetMapping("/device/gun/info/{gunId}")
    public JsonResult<GunInfoVO> detail(@PathVariable Long gunId);
}
